package cn.itcast.bos.service;

import java.util.List;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.domain.Specification;

import cn.itcast.bos.domain.base.SubArea;

public interface SubAreaService {
	/**
	 * 通过导入execl数据保存分区信息
	 * @param subAreas
	 */
	void saveSubArea(List<SubArea> subAreas);
	/**
	 * 条件查询分区信息
	 * @param specification
	 * @param pageable
	 * @return
	 */
	Page<SubArea> pageQueryCondition(Specification<SubArea> specification, Pageable pageable);
	/**
	 * 无条件分页查询
	 * @param pageable
	 * @return
	 */
	Page<SubArea> findAll(Pageable pageable);
	/**
	 * 根据定区id查询已关联的分区
	 * @param fixedAreaId
	 * @return
	 */
	List<SubArea> findAssociationSubArea(String fixedAreaId);


}
